package cn.com.git.admin.dao.model;

import java.io.Serializable;
import java.util.Date;

public class SysOperateLog implements Serializable {
    /**
     * id
     *
     * @mbggenerated
     */
    private Integer id;

    /**
     * 操作人id
     *
     * @mbggenerated
     */
    private Integer sysUserId;

    /**
     * 操作人账号
     *
     * @mbggenerated
     */
    private String sysUserAccount;

    /**
     * 操作人姓名
     *
     * @mbggenerated
     */
    private String sysUserName;

    /**
     * 登录ip
     *
     * @mbggenerated
     */
    private String ip;

    /**
     * 模块名称
     *
     * @mbggenerated
     */
    private String module;

    /**
     * 模块动作
     *
     * @mbggenerated
     */
    private String method;

    /**
     * 操作时间
     *
     * @mbggenerated
     */
    private Date operateTime;

    /**
     * 请求路径
     *
     * @mbggenerated
     */
    private String reqUrl;

    /**
     * 备注
     *
     * @mbggenerated
     */
    private String memo;

    /**
     * json格式
     *
     * @mbggenerated
     */
    private String reqParam;

    /**
     * 请求结果
     *
     * @mbggenerated
     */
    private String log;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(Integer sysUserId) {
        this.sysUserId = sysUserId;
    }

    public String getSysUserAccount() {
        return sysUserAccount;
    }

    public void setSysUserAccount(String sysUserAccount) {
        this.sysUserAccount = sysUserAccount;
    }

    public String getSysUserName() {
        return sysUserName;
    }

    public void setSysUserName(String sysUserName) {
        this.sysUserName = sysUserName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public String getReqUrl() {
        return reqUrl;
    }

    public void setReqUrl(String reqUrl) {
        this.reqUrl = reqUrl;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getReqParam() {
        return reqParam;
    }

    public void setReqParam(String reqParam) {
        this.reqParam = reqParam;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sysUserId=").append(sysUserId);
        sb.append(", sysUserAccount=").append(sysUserAccount);
        sb.append(", sysUserName=").append(sysUserName);
        sb.append(", ip=").append(ip);
        sb.append(", module=").append(module);
        sb.append(", method=").append(method);
        sb.append(", operateTime=").append(operateTime);
        sb.append(", reqUrl=").append(reqUrl);
        sb.append(", memo=").append(memo);
        sb.append(", reqParam=").append(reqParam);
        sb.append(", log=").append(log);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysOperateLog other = (SysOperateLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSysUserId() == null ? other.getSysUserId() == null : this.getSysUserId().equals(other.getSysUserId()))
            && (this.getSysUserAccount() == null ? other.getSysUserAccount() == null : this.getSysUserAccount().equals(other.getSysUserAccount()))
            && (this.getSysUserName() == null ? other.getSysUserName() == null : this.getSysUserName().equals(other.getSysUserName()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getModule() == null ? other.getModule() == null : this.getModule().equals(other.getModule()))
            && (this.getMethod() == null ? other.getMethod() == null : this.getMethod().equals(other.getMethod()))
            && (this.getOperateTime() == null ? other.getOperateTime() == null : this.getOperateTime().equals(other.getOperateTime()))
            && (this.getReqUrl() == null ? other.getReqUrl() == null : this.getReqUrl().equals(other.getReqUrl()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()))
            && (this.getReqParam() == null ? other.getReqParam() == null : this.getReqParam().equals(other.getReqParam()))
            && (this.getLog() == null ? other.getLog() == null : this.getLog().equals(other.getLog()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSysUserId() == null) ? 0 : getSysUserId().hashCode());
        result = prime * result + ((getSysUserAccount() == null) ? 0 : getSysUserAccount().hashCode());
        result = prime * result + ((getSysUserName() == null) ? 0 : getSysUserName().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getModule() == null) ? 0 : getModule().hashCode());
        result = prime * result + ((getMethod() == null) ? 0 : getMethod().hashCode());
        result = prime * result + ((getOperateTime() == null) ? 0 : getOperateTime().hashCode());
        result = prime * result + ((getReqUrl() == null) ? 0 : getReqUrl().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        result = prime * result + ((getReqParam() == null) ? 0 : getReqParam().hashCode());
        result = prime * result + ((getLog() == null) ? 0 : getLog().hashCode());
        return result;
    }
}